package cn.demo.controller;

import cn.demo.util.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@FeignClient(fallback = Text.class)
@RestController
public class DemoController {


    @RequestMapping("getUser")
    public Response getUser(){
        System.out.println("执行getUser");
        return Response.data("我是getUser");
    }
}
